package com.css.fxfzdpzs.modules.dzzh.task;

import com.css.fxfzdpzs.modules.dzzh.service.DzzhService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class SurfaceRuptureZoneTask {

    @Resource
    DzzhService dzzhService;

    @Scheduled(cron ="0 0 0 * * ?")  //定时任务一天执行一次
//    @Scheduled(cron = "0 0/1 * * * ?")
    public void getSurfaceRuptureZoneTask() {
        dzzhService.getSurfaceRuptureZoneTask();
    }
}
